/**用户模块 */
export default {
    namespaced: true,//开启命名空间
    state: () => ({
        token: '',
        userId: '',
        userName: ''
    }),
    mutations: {
        setToken(state, params) {
            state.token = params
        },
        setUserId(state, params) {
            state.userId = params
        },
        setUserName(state, params) {
            state.userName = params
        },
        clearAll(state) {
            state.token = ''
            state.userId = '',
                state.userName = ''
        },
    },
    actions: {},
    getters: {}
}